﻿namespace Oddo.Concept.Crm.Common.Presentation.Controls
{
    using System.Windows;
    using System.Windows.Controls;

    /// <summary>
    /// Interaction logic for BusyPanel.xaml
    /// </summary>
    public partial class BusyPanel : ContentControl
    {
        public static readonly DependencyProperty CancelButtonTextProperty =
            DependencyProperty.Register("CancelButtonText", typeof (string), typeof (BusyPanel), new PropertyMetadata("Cancel"));

        public static readonly DependencyProperty BusyTextProperty =
            DependencyProperty.Register("BusyText", typeof(string), typeof(BusyPanel), new PropertyMetadata("Operation in progress, please wait or cancel"));

        public string BusyText
        {
            get { return (string) GetValue(BusyTextProperty); }
            set { SetValue(BusyTextProperty, value); }
        }

        public string CancelButtonText
        {
            get { return (string) GetValue(CancelButtonTextProperty); }
            set { SetValue(CancelButtonTextProperty, value); }
        }

        public BusyPanel()
        {
            InitializeComponent();
        }
    }
}
